package biz.gieraltowski.lukships;

public class Marcel extends Actor {
	/** Prędkość poruszania się */
	protected int vx, vy;

	public Marcel(Stage stage) {
		super(stage);
		setSpriteName("/martyna.gif");
	}

	public void act() {
		x += vx;
		y += vy;
		if (x < 0 || x > Stage.WIDTH - width)
			vx = -vx;
		if (y < 0 || y > Stage.HEIGHT - height)
			vy = -vy;
		
	}

	public int getVx() {
		return vx;
	}

	public void setVx(int vx) {
		this.vx = vx;
	}
	
	public int getVy() {
		return vy;
	}

	public void setVy(int vy) {
		this.vy = vy;
	}

}
